import request from '@/utils/request_ry.js'

// 查询服务协议列表
export function listJyServiceAgreement(query) {
  return request({
    url: '/jy/jyServiceAgreement/list',
    method: 'get',
    params: query
  })
}

// 查询服务协议详细
export function getJyServiceAgreement(id) {
  return request({
    url: '/jy/jyServiceAgreement/' + id,
    method: 'get'
  })
}

// 新增服务协议
export function addJyServiceAgreement(data) {
  return request({
    url: '/jy/jyServiceAgreement',
    method: 'post',
    data: data,
	loading: true
  })
}

// 修改服务协议
export function updateJyServiceAgreement(data) {
  return request({
    url: '/jy/jyServiceAgreement',
    method: 'put',
    data: data,
	loading: true
  })
}

// 删除服务协议
export function delJyServiceAgreement(id) {
  return request({
    url: '/jy/jyServiceAgreement/' + id,
    method: 'delete'
  })
}
